import Vue from "vue";
import App from "./App.vue";
//引入router路由对象
import router from "@/router";
//引入vuex
import store from "@/store";
//引入全局注册组件
import "@/main/components";

//引入mock关联使用
import "@/mock/mockServer";

//引入事件总线
import "@/main/eventBus";

//引入element-UI
import "@/main/element";

//引入图片懒加载
import "@/main/lazyLoad";

//关闭测试提示
Vue.config.productionTip = false;
new Vue({
  render: (h) => h(App),
  //把router路由对象注册到实例上，那么所有的组件实例上都有有一个$router和$route对象
  router,
  //注册store
  store,
}).$mount("#app");
